<?php
/**
 * Created by PhpStorm.
 * User: 郑合达
 * Date: 2019/5/8
 * Time: 16:31
 */

namespace app\mobilewx\controller;;


use think\Controller;
use Common_util_pub;

class Zhifu extends Controller
{
    /**
     * 修改订单信息
     */
    public function notify(){
        file_put_contents(RUNTIME_PATH.'log.txt',$_POST);
    }
    //二维码支付
    public function index(){
        import('WxPayHelper', EXTEND_PATH . 'Wxpay');
        $jsApi = new Common_util_pub();
        $jsApi->getUrl('1222',2);
    }
    //H5支付
    public function h5(){
        import('WxPayHelper', EXTEND_PATH . 'Wxpay');
        $jsApi = new \Common_util_pub();
        $jsApi->getUrl2('1222',2);
    }
    //公众号支付
    public function gapp(){
        import('WxPayHelper', EXTEND_PATH . 'Wxpay');
        $jsApi = new Common_util_pub();
       $data=$jsApi->getUrl3('1222',2);
       $this->assign('data',$data);
       return view('index');
//        return retJson($data, 200, '');
    }
}